SP2::Application.routes.draw do

  #match "find_barang" => "penjualan_subs#add_row", :as => "find_barang"

  resources :penjualan_subs do
    collection do
      get "add_row"
    end
  end
  
  resources :penjualans do
    collection do
      get "pos"
      get "menyimpan_penjualan"
    end
  end

  resources :stok_perpindahans

  get "home/index"
  get "home/transaksi"

  resources :barangs


  root :to => 'home#index'

end
